package OOday01HomeWork;

public class Car {
    public String brand;
    public String color;
    public double price;

    public Car() {
    }

    public Car(String brand, String color, double price) {
        this.brand = brand;
        this.color = color;
        this.price = price;
    }

    public void start() {
        System.out.println(brand+"牌子"+color+"颜色"+price+"元的车启动了");
    }
    public void run() {
        System.out.println(brand+"牌子"+color+"颜色"+price+"元的车正在行驶中");
    }
    public void stop(){
        System.out.println(brand+"牌子"+color+"颜色"+price+"元的车停下来了");
    }
}
